package panda.metainfo;

public class StaticInfo {
	private int numBlocks;
	private int numRecords;
	
	public StaticInfo(int numBlocks, int numRecords) {
		this.numBlocks = numBlocks;
		this.numRecords = numRecords;
	}
	
	/**
	 * Get the number of block that will be accessed
	 */
	public int getBlockAccessed() {
		return numBlocks;
	}
	
	/**
	 * Get the number of distinct values in the specified column
	 */
	public int getDistinctSize(String name) {
		return 1 + (numRecords / 3);
	}
	
	/**
	 * Get the number of tuple in the output set
	 */
	public int getOutputSize() {
		return numRecords;
	}
}
